<h1>Tag Cloud</h1>
<p>Bigger words have more photos. Pretty cool yeah? :)</p>

<?php $tags = tag_cloud($tags); ?>
<div id="clouds">
  <?php 
//  foreach($tags as $tag){
//  	printf("<a href='index.php?view=by_tag&tag=%s' class='cloud%s'>%s</a>", $tag['name'], $tag['class'], safe_output($tag['name']));
//  }
	?>	
	
	<?php foreach($tags as $tag): ?>
        <a href="index.php?view=by_tag&tag=<?php echo $tag['name']; ?>" class="cloud<?php echo $tag['class']; ?>"><?php echo safe_output($tag['name']); ?></a>
	<?php endforeach; ?>
</div>
